#!/bin/bash

# cmake -S . -B build
# cmake --build build
cd /home/yizimi/paracomp/sysy > target.log 2>&1

for file in ./test/exp1/*.sy
do 
    echo "testing for" $file >> target.log 2>&1
    cp $file $file.c
    arm-linux-gnueabihf-gcc -S $file.c -O0 -o $file.ans 2>&1
done
echo "finished" >> target.log 2>&1